package cn.com.surker.report.dao;

import cn.com.surker.report.entity.ReportAuxiliary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 辅材金额统计 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-01-11
 */
public interface ReportAuxiliaryDao extends BaseMapper<ReportAuxiliary> {

    /**
     *
     * @param orgId
     * @param today
     * @param type
     * @return
     */
    ReportAuxiliary queryByToday(Long orgId, String today, Integer type);

    /**
     * 根据日期查询总数
     * @param today
     * @return
     */
    Integer queryByTodayTotal(String today);

    /**
     * 查询公司是否存在统计数据
     * @param today
     * @param orgId
     * @return
     */
    Integer queryByTodayOrgTotal(String today, Long orgId);

}
